<?php
@ini_set('session.use_trans_sid', 1);
session_start();
//include("lettering.php");
if(isset($_SESSION['name'])){
include("lettering.php");    
    if ($_SESSION['numButtons'] == 3)	{
echo '<form action="index.php" method="post">';
if ($_SESSION['textfile'] == "family.txt")
{    echo "<input type=\"radio\" name=\"radio\" value=\"0\" checked onclick=\"submit()\" title=\"";echo $title[9];echo "\"> $texte[12]";}
else
{    echo "<input type=\"radio\" name=\"radio\" value=\"0\" onclick=\"submit()\" title=\"";echo $title[10];echo "\">$texte[12]";}
if ($_SESSION['textfile'] == "eat.txt")
{    echo "<input type=\"radio\" name=\"radio\" value=\"1\" checked onclick=\"submit()\" title=\"";echo $title[9];echo "\"> $texte[13]";}
else
{    echo "<input type=\"radio\" name=\"radio\" value=\"1\" onclick=\"submit()\" title=\"";echo $title[10];echo "\"> $texte[13]";}
if ($_SESSION['textfile'] == "bed.txt")
{    echo "<input type= \"radio\" name=\"radio\" value=\"2\" checked onclick=\"submit()\" title=\"";echo $title[9];echo "\">$texte[14]</p>";}
else
{    echo "<input type=\"radio\" name=\"radio\" value=\"2\" onclick=\"submit()\" title=\"";echo $title[10];echo "\">$texte[14]</p>";}
if ($_SESSION['textfile'] == "care.txt")
{    echo "<input type=\"radio\" name=\"radio\" value=\"3\" checked onclick=\"submit()\" title=\"";echo $title[9];echo "\"> $texte[16]";}
else
{    echo "<input type=\"radio\" name=\"radio\" value=\"3\" onclick=\"submit()\" title=\"";echo $title[10];echo "\">$texte[16]";}
echo '</form>';

for ( $i=0; $i < $_SESSION['fileLines']; $i++ )      {
echo "<form name=\"myrow".$i."\"  id=\"myrow".$i."\"  action=\"index.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"myrow\" value=\"$i\">";
echo "<input class=\"myrows\" title=\"";echo $title[11];echo "\" name=\"mytext\" id=\"mytext".$i."\" type=\"text\"  onclick=\"mysubmit($i)\" size= \"33\" value=\"";echo $_SESSION['text'][$i];echo "\">";
echo "</form>";
}
    }
    else echo " ";
    }
    
    ?>
